package com.metka.volidata.entity;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;


/**
 * @Author: Metka499
 * @Description:
 * @CreateTime: 2020/7/6 14:27
 */
@Data
public class User {
    @Min(value = 2,message = "id最小值要求为2")
    private Long id;

    private String username;
    private String password;

    @Max(value = 3,message = "最大年龄是3")
    private Integer age;

    private Order order;
}
